#!/usr/bin/env bash

pid=`ps aux | grep aiops-log-alert | grep -v grep | awk '{print $2;}'`;

if [ -n "$pid" ];then
    echo "pid=$pid"
    ret=`kill $pid`
    exit $ret
else
    echo 'pid is empty'
    exit 0
fi